package com.hqq.behaviour.template_method;

/**
 * HalflingThief
 * Created by heqianqian on 2017/6/19.
 */
public class HalflingThief {

    private StealingMethod stealingMethod;

    public HalflingThief(StealingMethod stealingMethod) {
        this.stealingMethod = stealingMethod;
    }

    public void steal(){
        stealingMethod.steal();
    }

    public void changeMethod(StealingMethod stealingMethod){
        this.stealingMethod = stealingMethod;
    }

}
